<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
    </head>
    <body>
        <script>
            function func(){
                //直接在window对象中使用func()调用函数，this指向wondow对象
                console.log(this);
            }
            func();
        </script>
    </body>
</html>